  /**
   * Generate time : 2013-08-19 7:44:45
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cb.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCBMiningFollow 
 * table comment : 采面接替信息表 
 */
public class ZMCBMiningFollow extends DaoEPBase {

	private String fdKeyId = " ";		/* FD_KEY_ID*/
	private String fdForeignKey = " ";		/* 主键*/
	private String fdNum = " ";		/* 施工顺序*/
	private String fdWorkfaceId = " ";		/* 采面ID*/
	private String fdNo = " ";		/* 工作面编号*/
	private String fdName = " ";		/* 工作面名称*/
	private Double fdHeight = new Double(0);		/* 采高*/
	private Double fdBulk = new Double(0);		/* 容重*/
	private Double fdWidth = new Double(0);		/* 宽度*/
	private Double fdChance = new Double(0);		/* 回采率*/
	private String fdDepartmentId = " ";		/* 施工部门*/
	private String fdStatus = " ";		/* 采面状态*/
	private Double fdSurplusLength = new Double(0);		/* 剩余长度*/
	private Double fdMonthLength = new Double(0);		/* 月计划推进*/
	private Double fdSurplusWeight = new Double(0);		/* 剩余储量*/
	private Double fdMonthWeight = new Double(0);		/* 月计划产量*/
	private Double fdMonthOld = new Double(0);		/* 设计月计划产量*/
	private String fdIsPlan = "0";		/* 是否计划*/
	private Double fdTime = new Double(0);		/* 剩余施工时间*/
	
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("FD_KEY_ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdForeignKey");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdNum");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("施工顺序");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdWorkfaceId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("采面ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdNo");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("工作面编号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdName");
	eiColumn.setFieldLength(30);	
	eiColumn.setDescName("工作面名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdHeight");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("采高");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdBulk");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(8);
	eiColumn.setDescName("容重");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdWidth");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("宽度");
	eiMetadata.addMeta(eiColumn);	
	
	eiColumn = new EiColumn("fdChance");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(6);
	eiColumn.setDescName("回采率");
	eiMetadata.addMeta(eiColumn);
		
	eiColumn = new EiColumn("fdDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("施工部门");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStatus");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("采面状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSurplusLength");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("剩余长度");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMonthLength");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("月计划推进");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSurplusWeight");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("剩余储量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMonthWeight");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("月计划产量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMonthOld");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("设计月计划推进");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdIsPlan");
	eiColumn.setFieldLength(1);	
	eiColumn.setDescName("是否计划");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdTime");
	eiColumn.setType("N");
	eiColumn.setScaleLength(1);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("剩余施工时间");
	eiMetadata.addMeta(eiColumn);
	}
	/**
	 * the constructor
	 */
	public ZMCBMiningFollow() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - FD_KEY_ID
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdForeignKey - 主键
	 * @return the fdForeignKey
	 */
	public String getFdForeignKey() {
		return this.fdForeignKey;
	}
	
	/**
	 * set the fdForeignKey - 主键
	 */
	public void setFdForeignKey(String fdForeignKey) {
		this.fdForeignKey = fdForeignKey;
	}
	
	/**
	 * get the fdNum - 施工顺序
	 * @return the fdNum
	 */
	public String getFdNum() {
		return this.fdNum;
	}
	
	/**
	 * set the fdNum - 施工顺序
	 */
	public void setFdNum(String fdNum) {
		this.fdNum = fdNum;
	}
	
	/**
	 * get the fdWorkfaceId - 采面ID
	 * @return the fdWorkfaceId
	 */
	public String getFdWorkfaceId() {
		return this.fdWorkfaceId;
	}
	
	/**
	 * set the fdWorkfaceId - 采面ID
	 */
	public void setFdWorkfaceId(String fdWorkfaceId) {
		this.fdWorkfaceId = fdWorkfaceId;
	}

	/**
	 * get the fdNo - 工作面编号
	 * @return the fdNo
	 */
	public String getFdNo() {
		return this.fdNo;
	}
	
	/**
	 * set the fdNo - 工作面编号
	 */
	public void setFdNo(String fdNo) {
		this.fdNo = fdNo;
	}
	
	/**
	 * get the fdName - 工作面名称
	 * @return the fdName
	 */
	public String getFdName() {
		return this.fdName;
	}
	
	/**
	 * set the fdName - 工作面名称
	 */
	public void setFdName(String fdName) {
		this.fdName = fdName;
	}

	/**
	 * get the fdHeight - 采高
	 * @return the fdHeight
	 */
	public Double getFdHeight() {
		return this.fdHeight;
	}
	
	/**
	 * set the fdHeight - 采高
	 */
	public void setFdHeight(Double fdHeight) {
		this.fdHeight = fdHeight;
	}
	
	/**
	 * get the fdBulk - 容重
	 * @return the fdBulk
	 */
	public Double getFdBulk() {
		return this.fdBulk;
	}
	
	/**
	 * set the fdBulk - 容重
	 */
	public void setFdBulk(Double fdBulk) {
		this.fdBulk = fdBulk;
	}
	
	/**
	 * get the fdWidth - 宽度
	 * @return the fdWidth
	 */
	public Double getFdWidth() {
		return this.fdWidth;
	}
	
	/**
	 * set the fdWidth - 宽度
	 */
	public void setFdWidth(Double fdWidth) {
		this.fdWidth = fdWidth;
	}
	

	/**
	 * get the fdChance - 回采率
	 * @return the fdChance
	 */
	public Double getFdChance() {
		return this.fdChance;
	}
	
	/**
	 * set the fdChance - 回采率
	 */
	public void setFdChance(Double fdChance) {
		this.fdChance = fdChance;
	}
	
	/**
	 * get the fdDepartmentId - 施工部门
	 * @return the fdDepartmentId
	 */
	public String getFdDepartmentId() {
		return this.fdDepartmentId;
	}
	
	/**
	 * set the fdDepartmentId - 施工部门
	 */
	public void setFdDepartmentId(String fdDepartmentId) {
		this.fdDepartmentId = fdDepartmentId;
	}
	
	/**
	 * get the fdStatus - 采面状态
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}
	
	/**
	 * set the fdStatus - 采面状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}
	
	/**
	 * get the fdSurplusLength - 剩余长度
	 * @return the fdSurplusLength
	 */
	public Double getFdSurplusLength() {
		return this.fdSurplusLength;
	}
	
	/**
	 * set the fdSurplusLength - 剩余长度
	 */
	public void setFdSurplusLength(Double fdSurplusLength) {
		this.fdSurplusLength = fdSurplusLength;
	}
	
	/**
	 * get the fdMonthLength - 月计划推进
	 * @return the fdMonthLength
	 */
	public Double getFdMonthLength() {
		return this.fdMonthLength;
	}
	
	/**
	 * set the fdMonthLength - 月计划推进
	 */
	public void setFdMonthLength(Double fdMonthLength) {
		this.fdMonthLength = fdMonthLength;
	}
	
	/**
	 * get the fdSurplusWeight - 剩余储量
	 * @return the fdSurplusWeight
	 */
	public Double getFdSurplusWeight() {
		return this.fdSurplusWeight;
	}
	
	/**
	 * set the fdSurplusWeight - 剩余储量
	 */
	public void setFdSurplusWeight(Double fdSurplusWeight) {
		this.fdSurplusWeight = fdSurplusWeight;
	}
	
	/**
	 * get the fdMonthWeight - 月计划产量
	 * @return the fdMonthWeight
	 */
	public Double getFdMonthWeight() {
		return this.fdMonthWeight;
	}
	
	/**
	 * set the fdMonthWeight - 月计划产量
	 */
	public void setFdMonthWeight(Double fdMonthWeight) {
		this.fdMonthWeight = fdMonthWeight;
	}
	
	/**
	 * get the fdMonthOld- 设计月计划推进
	 * @return the fdMonthOld
	 */
	public Double getFdMonthOld() {
		return this.fdMonthOld;
	}
	
	/**
	 * set the fdMonthOld - 设计月计划推进
	 */
	public void setFdMonthOld(Double fdMonthOld) {
		this.fdMonthOld = fdMonthOld;
	}
	
	/**
	 * get the fdIsPlan - 是否计划
	 * @return the fdIsPlan
	 */
	public String getFdIsPlan() {
		return this.fdIsPlan;
	}
	
	/**
	 * set the fdIsPlan - 是否计划
	 */
	public void setFdIsPlan(String fdIsPlan) {
		this.fdIsPlan = fdIsPlan;
	}
	
	/**
	 * get the fdSurplusLength - 剩余施工时间
	 * @return the fdSurplusLength
	 */
	public Double getFdTime() {
		return this.fdTime;
	}
	
	/**
	 * set the fdTime - 剩余施工时间
	 */
	public void setFdTime(Double fdTime) {
		this.fdTime = fdTime;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdForeignKey(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdForeignKey")), fdForeignKey));
		setFdNum(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNum")), fdNum));
		setFdWorkfaceId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdWorkfaceId")), fdWorkfaceId));
		setFdNo(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNo")), fdNo));
		setFdName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdName")), fdName));
		setFdHeight(NumberUtils.toDouble(StringUtils.toString(map.get("fdHeight")), fdHeight));
		setFdBulk(NumberUtils.toDouble(StringUtils.toString(map.get("fdBulk")), fdBulk));
		setFdWidth(NumberUtils.toDouble(StringUtils.toString(map.get("fdWidth")), fdWidth));
		setFdChance(NumberUtils.toDouble(StringUtils.toString(map.get("fdChance")), fdChance));
		setFdDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentId")), fdDepartmentId));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdSurplusLength(NumberUtils.toDouble(StringUtils.toString(map.get("fdSurplusLength")), fdSurplusLength));
		setFdMonthLength(NumberUtils.toDouble(StringUtils.toString(map.get("fdMonthLength")), fdMonthLength));
		setFdSurplusWeight(NumberUtils.toDouble(StringUtils.toString(map.get("fdSurplusWeight")), fdSurplusWeight));
		setFdMonthWeight(NumberUtils.toDouble(StringUtils.toString(map.get("fdMonthWeight")), fdMonthWeight));
		setFdMonthOld(NumberUtils.toDouble(StringUtils.toString(map.get("fdMonthOld")), fdMonthOld));
		setFdIsPlan(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdIsPlan")), fdIsPlan));
		setFdTime(NumberUtils.toDouble(StringUtils.toString(map.get("fdTime")), fdTime));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdForeignKey",StringUtils.toString(fdForeignKey, eiMetadata.getMeta("fdForeignKey")));	
			map.put("fdNum",StringUtils.toString(fdNum, eiMetadata.getMeta("fdNum")));	
			map.put("fdWorkfaceId",StringUtils.toString(fdWorkfaceId, eiMetadata.getMeta("fdWorkfaceId")));	
			map.put("fdNo",StringUtils.toString(fdNo, eiMetadata.getMeta("fdNo")));	
			map.put("fdName",StringUtils.toString(fdName, eiMetadata.getMeta("fdName")));
			map.put("fdHeight",StringUtils.toString(fdHeight, eiMetadata.getMeta("fdHeight")));	
			map.put("fdBulk",StringUtils.toString(fdBulk, eiMetadata.getMeta("fdBulk")));	
			map.put("fdWidth",StringUtils.toString(fdWidth, eiMetadata.getMeta("fdWidth")));
			map.put("fdChance",StringUtils.toString(fdChance, eiMetadata.getMeta("fdChance")));	
			map.put("fdDepartmentId",StringUtils.toString(fdDepartmentId, eiMetadata.getMeta("fdDepartmentId")));	
			map.put("fdStatus",StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));	
			map.put("fdSurplusLength",StringUtils.toString(fdSurplusLength, eiMetadata.getMeta("fdSurplusLength")));	
			map.put("fdMonthLength",StringUtils.toString(fdMonthLength, eiMetadata.getMeta("fdMonthLength")));	
			map.put("fdSurplusWeight",StringUtils.toString(fdSurplusWeight, eiMetadata.getMeta("fdSurplusWeight")));	
			map.put("fdMonthWeight",StringUtils.toString(fdMonthWeight, eiMetadata.getMeta("fdMonthWeight")));	
			map.put("fdMonthOld",StringUtils.toString(fdMonthOld, eiMetadata.getMeta("fdMonthOld")));
			map.put("fdIsPlan",StringUtils.toString(fdIsPlan, eiMetadata.getMeta("fdIsPlan")));
			map.put("fdTime",StringUtils.toString(fdTime, eiMetadata.getMeta("fdTime")));
			
		return map;
	
	}
}